package com.xhu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 机会管理
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "chance_manage")
@Accessors(chain = true)
public class ChanceManage {
    /**
     * 机会id
     */
    @TableId(value = "chance_id", type = IdType.AUTO)
    private Integer chanceId;

    /**
     * 机会名称
     */
    @TableField(value = "chance_name")
    private String chanceName;

    /**
     * 机会编码
     */
    @TableField(value = "chance_code")
    private String chanceCode;

    /**
     * 当前操作者
     */
    @TableField(value = "current_name")
    private String currentName;

    /**
     * 备注
     */
    @TableField(value = "des")
    private String des;

    /**
     * 机会内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 来源
     */
    @TableField(value = "origin")
    private String origin;

    /**
     * 录入人
     */
    @TableField(value = "entry_name")
    private String entryName;

    /**
     * 录入时间
     */
    @TableField(value = "entry_time")
    private String entryTime;

    /**
     * 操作人
     */
    @TableField(value = "operator_name")
    private String operatorName;

    /**
     * 操作时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * 被分配人
     */
    @TableField(value = "assigner_name")
    private String assignerName;

    /**
     * 机会类型
     */
    @TableField(value = "chance_type")
    private String chanceType;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    public static final String COL_CHANCE_ID = "chance_id";

    public static final String COL_CHANCE_NAME = "chance_name";

    public static final String COL_CHANCE_CODE = "chance_code";

    public static final String COL_CURRENT_NAME = "current_name";

    public static final String COL_DES = "des";

    public static final String COL_CONTENT = "content";

    public static final String COL_ORIGIN = "origin";

    public static final String COL_ENTRY_NAME = "entry_name";

    public static final String COL_ENTRY_TIME = "entry_time";

    public static final String COL_OPERATOR_NAME = "operator_name";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_ASSIGNER_NAME = "assigner_name";

    public static final String COL_CHANCE_TYPE = "chance_type";

    public static final String COL_IS_DELETE = "is_delete";
}